package com.foftact.etfhist;

import com.alibaba.fastjson2.annotation.JSONField;

/**
 * ETF历史净值数据传输对象
 * 用于接收从API抓取的单个历史净值数据
 */
public class ETFHistoryDTO {
    @JSONField(name = "FSRQ")
    private String fsrq; // 净值日期，字符串格式

    @JSONField(name = "DWJZ")
    private String dwjz; // 单位净值，字符串格式

    @JSONField(name = "LJJZ")
    private String ljjz; // 累计净值，字符串格式

    @JSONField(name = "JZZZL")
    private String jzzzl; // 净值增长率，字符串格式

    @JSONField(name = "SGZT")
    private String sgzt; // 申购状态

    @JSONField(name = "SHZT")
    private String shzt; // 赎回状态

    @JSONField(name = "FHFCZ")
    private String fhfcz; // 分红方案描述

    // getter和setter方法
    public String getFsrq() {
        return fsrq;
    }

    public void setFsrq(String fsrq) {
        this.fsrq = fsrq;
    }

    public String getDwjz() {
        return dwjz;
    }

    public void setDwjz(String dwjz) {
        this.dwjz = dwjz;
    }

    public String getLjjz() {
        return ljjz;
    }

    public void setLjjz(String ljjz) {
        this.ljjz = ljjz;
    }

    public String getJzzzl() {
        return jzzzl;
    }

    public void setJzzzl(String jzzzl) {
        this.jzzzl = jzzzl;
    }

    public String getSgzt() {
        return sgzt;
    }

    public void setSgzt(String sgzt) {
        this.sgzt = sgzt;
    }

    public String getShzt() {
        return shzt;
    }

    public void setShzt(String shzt) {
        this.shzt = shzt;
    }

    public String getFhfcz() {
        return fhfcz;
    }

    public void setFhfcz(String fhfcz) {
        this.fhfcz = fhfcz;
    }

    @Override
    public String toString() {
        return "ETFHistoryDTO{" +
                "fsrq='" + fsrq + '\'' +
                ", dwjz='" + dwjz + '\'' +
                ", ljjz='" + ljjz + '\'' +
                ", jzzzl='" + jzzzl + '\'' +
                ", sgzt='" + sgzt + '\'' +
                ", shzt='" + shzt + '\'' +
                ", fhfcz='" + fhfcz + '\'' +
                '}';
    }
}